package drugs

import (
	"Project/global"
)

type DrugsShop struct {
	global.GVA_MODEL
	DrugsShopID  int64  `json:"drugs_shop_id" gorm:"unique;not null;comment:药店唯一标识"`
	AreaID       int64  `json:"area_id"       gorm:"index;NOT NULL;comment:县区唯一标识"`
	Name         string `json:"shop_name"     gorm:"type:VARCHAR(10);comment:药店名"`
	RegisterAddr string `json:"register_addr" gorm:"type:VARCHAR(50);comment:登记地址"`
	CreditCode   string `json:"credit_code"   gorm:"type:CHAR(20);comment:社会信用代码"`
}

func (DrugsShop) TableName() string {
	return "drugs_shop"
}